package com.lqfan.autoAnswerQ.model.wrongSubject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zml
 * @since 2020-04-26
 */
@TableName("wrongSubject")
public class WrongSubject extends Model<WrongSubject> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 来源于哪个题库
     */
    @TableField("questionId")
    private String questionId;

    /**
     * 目前完成答题次数
     */
    @TableField("runNumber")
    private String runNumber;

    /**
     * 正确达标次数
     */
    @TableField("confirmNumber")
    private String confirmNumber;

    /**
     * 是否允许删除
     */
    @TableField("isDeleteWrong")
    private Integer isDeleteWrong;

    /**
     * 选择类型全部为0，其他按顺序1234
     */
    @TableField("selectType")
    private String selectType;

    /**
     * 做错此题得用户
     */
    @TableField("userId")
    private String userId;

    /**
     * 错题id
     */
    @TableField("subjectId")
    private String subjectId;

    /**
     * 文件路径
     */
    @TableField("path")
    private String path;

    @TableField("name")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getRunNumber() {
        return runNumber;
    }

    public void setRunNumber(String runNumber) {
        this.runNumber = runNumber;
    }

    public String getConfirmNumber() {
        return confirmNumber;
    }

    public void setConfirmNumber(String confirmNumber) {
        this.confirmNumber = confirmNumber;
    }

    public Integer getIsDeleteWrong() {
        return isDeleteWrong;
    }

    public void setIsDeleteWrong(Integer isDeleteWrong) {
        this.isDeleteWrong = isDeleteWrong;
    }

    public String getSelectType() {
        return selectType;
    }

    public void setSelectType(String selectType) {
        this.selectType = selectType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WrongSubject{" +
        "id=" + id +
        ", questionId=" + questionId +
        ", runNumber=" + runNumber +
        ", confirmNumber=" + confirmNumber +
        ", isDeleteWrong=" + isDeleteWrong +
        ", selectType=" + selectType +
        ", userId=" + userId +
        ", subjectId=" + subjectId +
        ", path=" + path +
        "}";
    }
}
